home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / T / TransSkel 3.11.sit / TransSkel v 3.11 / Convenience / Positioning Stuff / SkelTestRectVis.c < prev   
MacBinary  |  1994-02-20  |  1.5 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun Feb 20 18:33:08 1994, modified Sun Feb 20 18:33:08 1994, creator Think C, type ASCII, 917 bytes "SkelTestRectVis.c" , at 0x415 372 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 53 6b 65 6c 54 65 | 73 74 52 65 63 74 56 69 |..SkelTe|stRectVi|
|00000010| 73 2e 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |s.c.....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 03 95 00 | 00 01 74 a9 8d a3 b4 a9 |........|..t.....|
|00000060| 8d a3 b4 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c9 b0 00 00 |........|........|
|00000080| 2f 2a 0d 20 2a 20 53 6b | 65 6c 54 65 73 74 52 65 |/*. * Sk|elTestRe|
|00000090| 63 74 56 69 73 69 62 6c | 65 20 28 29 0d 20 2a 0d |ctVisibl|e (). *.|
|000000a0| 20 2a 20 54 65 73 74 20 | 77 68 65 74 68 65 72 20 | * Test |whether |
|000000b0| 6f 72 20 6e 6f 74 20 74 | 68 65 20 67 69 76 65 6e |or not t|he given|
|000000c0| 20 72 65 63 74 61 6e 67 | 6c 65 20 69 73 20 63 6f | rectang|le is co|
|000000d0| 6d 70 6c 65 74 65 6c 79 | 20 76 69 73 69 62 6c 65 |mpletely| visible|
|000000e0| 20 6f 6e 20 74 68 65 0d | 20 2a 20 64 65 73 6b 74 | on the.| * deskt|
|000000f0| 6f 70 2e 20 20 44 6f 6e | 65 20 62 79 20 63 6f 6e |op. Don|e by con|
|00000100| 76 65 72 74 69 6e 67 20 | 74 68 65 20 72 65 63 74 |verting |the rect|
|00000110| 61 6e 67 6c 65 20 74 6f | 20 61 20 72 65 67 69 6f |angle to| a regio|
|00000120| 6e 2c 20 69 6e 74 65 72 | 73 65 63 74 69 6e 67 0d |n, inter|secting.|
|00000130| 20 2a 20 69 74 20 77 69 | 74 68 20 74 68 65 20 64 | * it wi|th the d|
|00000140| 65 73 6b 74 6f 70 20 72 | 65 67 69 6f 6e 2c 20 61 |esktop r|egion, a|
|00000150| 6e 64 20 63 68 65 63 6b | 69 6e 67 20 77 68 65 74 |nd check|ing whet|
|00000160| 68 65 72 20 6f 72 20 6e | 6f 74 20 74 68 65 20 69 |her or n|ot the i|
|00000170| 6e 74 65 72 73 65 63 74 | 69 6f 6e 0d 20 2a 20 69 |ntersect|ion. * i|
|00000180| 73 20 74 68 65 20 73 61 | 6d 65 20 61 73 20 74 68 |s the sa|me as th|
|00000190| 65 20 72 65 63 74 61 6e | 67 6c 65 27 73 20 72 65 |e rectan|gle's re|
|000001a0| 67 69 6f 6e 2e 0d 20 2a | 0d 20 2a 20 52 65 73 75 |gion.. *|. * Resu|
|000001b0| 6c 74 20 69 73 20 66 61 | 6c 73 65 20 69 66 20 74 |lt is fa|lse if t|
|000001c0| 68 65 20 72 65 67 69 6f | 6e 73 20 6e 65 65 64 65 |he regio|ns neede|
|000001d0| 64 20 66 6f 72 20 74 68 | 65 20 63 61 6c 63 75 6c |d for th|e calcul|
|000001e0| 61 74 69 6f 6e 20 63 61 | 6e 27 74 20 62 65 0d 20 |ation ca|n't be. |
|000001f0| 2a 20 61 6c 6c 6f 63 61 | 74 65 64 2e 0d 20 2a 2f |* alloca|ted.. */|
|00000200| 0d 0d 23 20 69 6e 63 6c | 75 64 65 09 22 54 72 61 |..# incl|ude."Tra|
|00000210| 6e 73 53 6b 65 6c 2e 68 | 22 0d 0d 0d 70 61 73 63 |nsSkel.h|"...pasc|
|00000220| 61 6c 20 42 6f 6f 6c 65 | 61 6e 0d 53 6b 65 6c 54 |al Boole|an.SkelT|
|00000230| 65 73 74 52 65 63 74 56 | 69 73 69 62 6c 65 20 28 |estRectV|isible (|
|00000240| 52 65 63 74 20 2a 72 29 | 0d 7b 0d 42 6f 6f 6c 65 |Rect *r)|.{.Boole|
|00000250| 61 6e 09 09 72 65 73 75 | 6c 74 20 3d 20 66 61 6c |an..resu|lt = fal|
|00000260| 73 65 3b 0d 52 67 6e 48 | 61 6e 64 6c 65 09 72 65 |se;.RgnH|andle.re|
|00000270| 63 74 52 67 6e 3b 0d 52 | 67 6e 48 61 6e 64 6c 65 |ctRgn;.R|gnHandle|
|00000280| 09 72 67 6e 3b 0d 0d 09 | 72 65 63 74 52 67 6e 20 |.rgn;...|rectRgn |
|00000290| 3d 20 4e 65 77 52 67 6e | 20 28 29 3b 0d 09 69 66 |= NewRgn| ();..if|
|000002a0| 20 28 72 65 63 74 52 67 | 6e 20 21 3d 20 28 52 67 | (rectRg|n != (Rg|
|000002b0| 6e 48 61 6e 64 6c 65 29 | 20 6e 69 6c 29 0d 09 7b |nHandle)| nil)..{|
|000002c0| 0d 09 09 72 67 6e 20 3d | 20 28 52 67 6e 48 61 6e |...rgn =| (RgnHan|
|000002d0| 64 6c 65 29 20 53 6b 65 | 6c 51 75 65 72 79 20 28 |dle) Ske|lQuery (|
|000002e0| 73 6b 65 6c 51 47 72 61 | 79 52 67 6e 29 3b 0d 09 |skelQGra|yRgn);..|
|000002f0| 09 69 66 20 28 72 67 6e | 20 21 3d 20 28 52 67 6e |.if (rgn| != (Rgn|
|00000300| 48 61 6e 64 6c 65 29 20 | 6e 69 6c 29 0d 09 09 7b |Handle) |nil)...{|
|00000310| 0d 09 09 09 52 65 63 74 | 52 67 6e 20 28 72 65 63 |....Rect|Rgn (rec|
|00000320| 74 52 67 6e 2c 20 72 29 | 3b 09 09 09 09 2f 2a 20 |tRgn, r)|;..../* |
|00000330| 63 6f 6e 76 65 72 74 20 | 72 65 63 74 20 74 6f 20 |convert |rect to |
|00000340| 72 65 67 69 6f 6e 20 2a | 2f 0d 09 09 09 53 65 63 |region *|/....Sec|
|00000350| 74 52 67 6e 20 28 72 65 | 63 74 52 67 6e 2c 20 72 |tRgn (re|ctRgn, r|
|00000360| 67 6e 2c 20 72 67 6e 29 | 3b 09 09 2f 2a 20 69 6e |gn, rgn)|;../* in|
|00000370| 74 65 72 73 65 63 74 20 | 77 69 74 68 20 64 65 73 |tersect |with des|
|00000380| 6b 74 6f 70 20 2a 2f 0d | 09 09 09 72 65 73 75 6c |ktop */.|...resul|
|00000390| 74 20 3d 20 45 71 75 61 | 6c 52 67 6e 20 28 72 65 |t = Equa|lRgn (re|
|000003a0| 63 74 52 67 6e 2c 20 72 | 67 6e 29 3b 09 2f 2a 20 |ctRgn, r|gn);./* |
|000003b0| 74 72 75 65 20 69 66 20 | 63 6f 6d 70 6c 65 74 65 |true if |complete|
|000003c0| 6c 79 20 77 69 74 68 69 | 6e 20 2a 2f 0d 09 09 09 |ly withi|n */....|
|000003d0| 44 69 73 70 6f 73 65 52 | 67 6e 20 28 72 67 6e 29 |DisposeR|gn (rgn)|
|000003e0| 3b 0d 09 09 7d 0d 09 09 | 44 69 73 70 6f 73 65 52 |;...}...|DisposeR|
|000003f0| 67 6e 20 28 72 65 63 74 | 52 67 6e 29 3b 0d 09 7d |gn (rect|Rgn);..}|
|00000400| 0d 09 72 65 74 75 72 6e | 20 28 72 65 73 75 6c 74 |..return| (result|
|00000410| 29 3b 0d 7d 0d 00 00 00 | 00 00 00 00 00 00 00 00 |);.}....|........|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 01 00 00 00 01 2e | 00 00 00 2e 00 00 00 46 |........|.......F|
|00000490| 65 bc 07 40 bd 04 20 4f | 49 4b fe 07 f4 06 ec 68 |e..@.. O|IK.....h|
|000004a0| f6 00 00 81 0b 84 20 00 | 00 00 00 00 09 0e 00 a8 |...... .|........|
|000004b0| 11 53 6b 65 6c 54 65 73 | 74 52 65 63 74 56 69 73 |.SkelTes|tRectVis|
|000004c0| 2e 63 02 00 00 00 50 61 | 72 74 53 49 54 78 00 00 |.c....Pa|rtSITx..|
|000004d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 a9 9f 75 93 00 00 | 00 00 00 00 01 74 10 0e |....u...|.....t..|
|00000500| 84 b8 04 41 19 42 c0 30 | 00 19 20 69 1e 58 12 9e |...A.B.0|.. i.X..|
|00000510| 24 0e 85 50 24 0a 40 92 | 2a ca 40 fe 40 c2 82 b2 |$..P$.@.|*.@.@...|
|00000520| 05 40 48 1d 0e 20 48 1a | 81 20 62 80 fe 40 d8 07 |.@H.. H.|. b..@..|
|00000530| 20 64 88 90 3a 23 40 90 | 41 02 41 26 20 1f e2 01 | d..:#@.|A.A& ...|
|00000540| b6 24 96 40 a9 89 03 a3 | 15 89 94 81 ae 20 1f c8 |.$.@....|..... ..|
|00000550| 00 2c 81 92 82 40 eb 15 | 0a 30 81 2e 28 1f c8 1b |.,...@..|.0..(...|
|00000560| 41 89 03 15 44 81 d1 fa | 04 83 68 12 0f 31 80 fe |A...D...|..h..1..|
|00000570| 40 d8 0f 20 64 b0 90 3a | 46 47 99 12 24 0f a0 a4 |@.. d..:|FG..$...|
|00000580| 00 00 00 1e 00 01 00 00 | 01 ab 00 00 01 be 13 53 |........|.......S|
|00000590| 6b 65 6c 54 65 73 74 52 | 65 63 74 56 69 73 69 62 |kelTestR|ectVisib|
|000005a0| 6c 65 00 00 00 08 00 c5 | 00 10 01 8e 02 3f 00 00 |le......|.....?..|
|000005b0| 01 00 00 00 01 2e 00 00 | 00 2e 00 00 00 46 00 4c |........|.....F.L|
|000005c0| c1 10 0b c2 00 00 00 1c | 00 46 00 01 4d 50 53 52 |........|.F..MPSR|
|000005d0| 00 00 00 12 52 45 43 54 | 00 00 00 1e 03 ef ff ff |....RECT|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 ff ff 00 00 00 22 |........|......."|
|000005f0| 00 4c bf 7c 00 00 00 00 | 00 00 00 00 00 00 00 00 |.L.|....|........|
+--------+-------------------------+-------------------------+--------+--------+